package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author zengke
 * @ClassName GatewayEntity
 * @Date 2023/3/23 14:08
 * @Version 1.0
 * @Description TODO
 */

@ApiModel
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mqtt_gateway")
public class GatewayEntity extends BaseEntity{

    //网关sn号
    @ApiModelProperty("网关sn号")
    private String snId;

    //网关名称
    @ApiModelProperty("网关名称")
    private String gatewayName;

    //网关密钥
    @ApiModelProperty("网关密钥")
    private String gatewaySecret;

    //网关备注名
    @ApiModelProperty("网关备注名")
    private String gatewayNickname;

    //逻辑删除
    @ApiModelProperty("逻辑删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;

}
